function Tinymce(tinymceUrl, editor) {
    layui.extend({
        tinymce: tinymceUrl
    }).use(['tinymce', 'form', 'layer', 'jquery', 'upload'], () => {
        let t = layui.tinymce
        t.render(
            {
                elem: "#edit",
                width: 1150,
                height: 600,
                images_upload_url: url.editImagesUploadUrl,
                relative_urls: false,
                remove_script_host: false,
                convert_urls: false,
                toolbar: 'undo redo | styleselect fontselect fontsizeselect | bold italic underline | outdent indent alignleft aligncenter alignjustify  removeformat| link image',
                formats: {
                    p: {styles: {lineHeight: '2em'}}
                }
            },
            (opt, edit) => {
                editor(edit, layui)
            })
    })
}